package nl.saxion.security.transfer;

import nl.saxion.security.connection.ServerConnection;


/**
 * Class for setting up connection for Server
 * 
 * @author erik
 *
 */
public class Server extends Transfer{


	/**
	 * 
	 * @param comPort
	 * @param dataPort
	 */
	public Server(int comPort, int dataPort)
	{
		super(comPort, dataPort);
	}


	/**
	 * Create Communication connection
	 * @return Com connection
	 * @throws Exception 
	 */
	public void createComConnection() throws Exception
	{
		comCon = new ServerConnection(comPort, 0);
		super.createComConnection();
	}
	
	/**
	 * Create Data connection
	 * @return Data connection 
	 * @throws Exception 
	 */
	public void createDataConnection() throws Exception
	{
		dataCon = new ServerConnection(dataPort, 0);
		super.createDataConnection();
	}
	
	
}
